package com.cc.entity.annotation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class Dog {
    @Value("兰二狗")
    private String name;
    @Value("公")
    private String sex;
    public Dog() {
       
    }
    public Dog(String name, String sex) {
        this.name = name;
        this.sex= sex;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    @Override
    public String toString() {
        return "Dog [name=" + name + ", sex=" + sex + "]";
    }
    
}
